package Vista;

import java.awt.Dimension;
import java.util.ArrayList;

import javax.swing.WindowConstants;
import javax.swing.table.AbstractTableModel;
import javax.swing.table.DefaultTableModel;
import javax.swing.table.TableModel;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JOptionPane;
import javax.swing.JScrollPane;
import javax.swing.JTable;

import Modelo.Partido;

/**
* This code was edited or generated using CloudGarden's Jigloo
* SWT/Swing GUI Builder, which is free for non-commercial
* use. If Jigloo is being used commercially (ie, by a corporation,
* company or business for any purpose whatever) then you
* should purchase a license for each developer using Jigloo.
* Please visit www.cloudgarden.com for details.
* Use of Jigloo implies acceptance of these licensing terms.
* A COMMERCIAL LICENSE HAS NOT BEEN PURCHASED FOR
* THIS MACHINE, SO JIGLOO OR THIS CODE CANNOT BE USED
* LEGALLY FOR ANY CORPORATE OR COMMERCIAL PURPOSE.
*/
public class VentanaCalendarioJuegos extends javax.swing.JPanel {
	private JScrollPane ScrollventanaCalendarioJuegos;
	private JLabel lbltitulo;
	private JTable tblcalendarioJuegos;
	
	public VentanaCalendarioJuegos() {
		super();
		initGUI();
	}
	
	

	private void initGUI() {
		try {
			setPreferredSize(new Dimension(400, 300));
			this.setLayout(null);
			this.setBackground(new java.awt.Color(255,255,255));
			{
				ScrollventanaCalendarioJuegos = new JScrollPane();
				this.add(ScrollventanaCalendarioJuegos);
				ScrollventanaCalendarioJuegos.setBounds(64, 75, 278, 166);
				ScrollventanaCalendarioJuegos.setBackground(new java.awt.Color(255,255,255));
			
			}	
			{
				tblcalendarioJuegos = new JTable();
				ScrollventanaCalendarioJuegos.setViewportView(tblcalendarioJuegos);
			}	
			
			{
				lbltitulo = new JLabel();
				this.add(lbltitulo);
				lbltitulo.setText("Calendario de Juegos");
				lbltitulo.setBounds(112, 36, 184, 15);
				lbltitulo.setFont(new java.awt.Font("Century Schoolbook L",1,14));
			}
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
	public void setListado(AbstractTableModel abstractTableModel){
		tblcalendarioJuegos.setModel(abstractTableModel);
	}
	
	public void mostrarMensaje(String mensaje){
		JOptionPane.showMessageDialog(this, mensaje);
	}



}
